<template>
  <div>
    <h3>我是子组件</h3>
  </div>
</template>

<script>
// data  props
export default {
    props: ["num"],
    watch: {
        num(newValue, old) {
            console.log(123)
        }
    }
}
</script>

<style>

</style>